package cz.gelion.shylock.invoice.web.subj

import org.apache.wicket.markup.html.panel.Panel
import org.apache.wicket.model.IModel
import cz.gelion.shylock.invoice.entity.Subject
import cz.gelion.shylock.invoice.Log
import org.apache.wicket.markup.html.form.Form
import org.apache.wicket.markup.html.form.TextField
import org.apache.wicket.markup.html.form.TextArea
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink
import org.apache.wicket.ajax.AjaxRequestTarget
import org.apache.wicket.model.CompoundPropertyModel
import org.apache.wicket.markup.html.WebMarkupContainer
import org.apache.wicket.markup.html.list.ListView
import cz.gelion.shylock.invoice.web.Application
import org.apache.wicket.validation.validator.PatternValidator
import org.apache.wicket.markup.html.basic.Label
import org.apache.wicket.markup.html.basic.MultiLineLabel

class SubjectPanel(id:String, model:IModel[Subject]) extends Panel(id,model) with Log {
  
  setDefaultModel(new CompoundPropertyModel[Subject](model))

  add(new Label("prefix"))
  add(new Label("name"))
  add(new Label("givenname"))		
  add(new Label("suffix"))
  add(new Label("street"))
  add(new Label("city"))
  add(new Label("district"))
  add(new Label("state"))
  add(new Label("postcode"))
  add(new Label("taxno"))
  add(new Label("idno"))
  add(new MultiLineLabel("note"))
  
  
  val unitListCont = new WebMarkupContainer("unitListCont")
  add(unitListCont)
  
}